<div title="顾客转入" style="padding:10px">

			<div class="charge">
				<ul class="headContent">
<!-- 						<li style="margin-top: 14px;margin-left:-15px;margin-bottom: 14px;"> -->
<!-- 							<div> -->
<!-- 								<span>姓名</span> -->
<!-- 							    <input id="customerName" name="cusname"  class="easyui-textbox theme-textbox-radius" style="width:120px;height:32px;text-align:center" value="${customer.name !}"  -->
<!-- 							    data-options=" -->
<!-- 							    iconWidth: 22, -->
<!-- 							    icons: [{iconCls:'icon-cancel', -->
<!-- 							    handler: clear -->
<!-- 							    }]"> -->
<!-- 							</div> -->
<!-- 						</li> -->
<!-- 						<li style="margin-left: 30px;"> -->
<!-- 							<div> -->
<!-- 								<span>手机号</span> -->
<!-- 							    <input id="customerPhone" name="cusphone" class="easyui-textbox theme-textbox-radius" style="width:120px;height:32px;text-align:center" value="${customer.phone !}" -->
<!-- 								    data-options=" -->
<!-- 								    iconWidth: 22, -->
<!-- 								    icons: [{iconCls:'icon-cancel', -->
<!-- 								    handler: clear -->
<!-- 								    }]" -->
<!-- 								> -->
<!-- 							</div> -->
<!-- 						</li> -->

						<li style="margin-left: 30px;">
							<div>
								<span>转出门店</span>
								<input id="organ" type="text"  style="width: 200px; height: 30px; padding-left: 10px;border-radius:3px" onclick="showMenu(); return false;" class="textbox" />
								<input  id="proIds" type="hidden" value="${parentOrg.ids! }">
								<input  id="organIds" name="outShopIds" type="hidden" >
							</div>
						</li>
						<li style="margin-left: 0px;">
							<div>
<!-- 							<input id="search" class="easyui-textbox theme-textbox-radius" style="width:150px;height:32px" > -->
								<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-clear'" style="width:80px"  onclick="clearsj()">清除</a>
							</div>
						</li>
						
					</ul>
			</div>	
			<div id="menuContent" class="menuContent" style="display: none; position: absolute;z-index: 10;">
								<ul id="organSelectTree" class="ztree" style="margin-top:0px;width: 200px;"></ul>
							</div>
					<table id="_intoShop_datagrid" class="easyui-datagrid" style="width:100%;"></table>	
				</div>
		<script src="${cxt !}/sb/js/bintoShop/bintoShop.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
				var organIds=$('#proIds').val();
			var setting = {
				async : {
					enable : true,
					url : '${cxt!}/common/getBeOrgenTree',
					autoParam : [ "id=ids" ],//, "name=n", "level=lv"
					otherParam : {
						"organIds" : organIds
					},
					type : "post"
				},
				view : {
					dblClickExpand : false
				},
				data : {
					simpleData : {
						enable : true
					}
				},
				callback : {
					onClick : onClick,
					onAsyncSuccess : organTreeOnAsyncSuccess
				}
			};
			var flag=0;//只初始化一次标识
			function organTreeOnAsyncSuccess(event, treeId, msg) {
				if(flag == 0){
					var organTree = $.fn.zTree.getZTreeObj("organSelectTree");
					var nodes = organTree.getNodes();
					flag = 1;
				}
			}
			function onClick(e, treeId, treeNode) {
				var zTree = $.fn.zTree.getZTreeObj("organSelectTree");
				var path = "";
				var sNodes = zTree.getSelectedNodes();
				if (sNodes.length > 0) {
					var node = sNodes[0].getPath();
					for(var i =0;i<node.length;i++){
						if(i == (node.length-1)){
							path += node[i].name;
						}else{
							path += node[i].name + "/";
						}
						
					}
				}
				var cityObj = $("#organ");
				cityObj.attr("value", path);
				$("#organIds").attr("value", treeNode.id);
				searchCus();
				hideMenu();
			}
			function showMenu() {
				var cityObj = $("#organ");
				var cityOffset = $("#organ").offset();
				$("#menuContent").css({
					left : cityOffset.left + "px",
					top : cityOffset.top + cityObj.outerHeight() + "px"
				}).slideDown("fast");
				$("body").bind("mousedown", onBodyDown);
			}
			function hideMenu() {
				$("#menuContent").fadeOut("fast");
				$("body").unbind("mousedown", onBodyDown);
			}
			function onBodyDown(event) {
				if (!(event.target.id == "menuBtn"
						|| event.target.id == "menuContent" || $(event.target)
						.parents("#menuContent").length > 0)) {
					hideMenu();
				}
			}
			
			//清空顾客信息
			function clearsj(){
				window.location.reload();
			}
			
			$.fn.zTree.init($("#organSelectTree"), setting);
		</script>
				